package com.gxar.timeline.server.db.model;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author linsy
 * @version 1.0
 * @created 2023/9/21 17:40
 */
@Entity
@Getter
@Setter
@NoArgsConstructor
@Table(name = "hmd_product_model")
public class HmdProductModelEntity {

    /**
     * 型号id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 产品id
     */
    private Long productId;

    /**
     * 发布价格
     */
    private BigDecimal price;

    /**
     * 货币单位
     * com.gxar.timeline.server.base.common.enums.CurrencyEnum
     */
    private String symbol;

    /**
     * 购买链接
     */
    private String purchaseLink;

    /**
     * 型号描述
     */
    private String description;

    /**
     * 创建时间
     */
    @Column(nullable = false)
    private Date createdAt;
}
